package com.mydesignpattern.beijing.adapter;

import com.mydesignpattern.beijing.adapter.china.GBSocket;
import com.mydesignpattern.beijing.adapter.german.DBSocket;

public class SocketAdapter implements GBSocket {
    private DBSocket dbSocket;

    public SocketAdapter(){};

    public SocketAdapter(DBSocket dbSocket){
        this.dbSocket = dbSocket;
    }

    @Override
    public void chargeWithThreeLegs() {
        dbSocket.chargeWithTwoLegs();
        System.out.println("插座适配器，2腿变3腿");

    }
}
